package com.biz.primus.ms.order.feign;

import com.biz.primus.product.vo.OrderProductInfoRespVo;
import com.biz.primus.product.vo.OrderProductReqVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 商品接口调用
 *
 * @author Tiger Feng
 * @date 2017年10月31日
 */
@FeignClient(qualifier = "productFeignClient", name = "service-product")
public interface ProductFeignClient {

    /**
     * 订单购物车商品接口
     * @param orderProductReqVo
     * @return
     */
    @PostMapping("soa/frontendProductService/orderProduct")
    List<OrderProductInfoRespVo> orderProduct(@RequestParam("orderProductReqVo") OrderProductReqVo orderProductReqVo);
}
